/***********************************************************************************
  * File:			led.h
  * Version:		V1.0
  * Date:			2021.5.26
  * Description:	LED应用函数接口
***********************************************************************************/

/**
 * @file led.h
 * @author Nations
 * @version v1.0.0
 *
 * @copyright Copyright (c) 2019, Nations Technologies Inc. All rights reserved.
 */

#ifndef __LED_H__
#define __LED_H__

#include <rtthread.h>

#define LED1_PIN    GPIO_PIN_5
#define LED2_PIN    GPIO_PIN_4
#define LED3_PIN    GPIO_PIN_8

#define LED1_PORT   GPIOB
#define LED2_PORT   GPIOB
#define LED3_PORT   GPIOA


void rt_hw_led_init(void);
void rt_hw_led_on(rt_uint32_t led);
void rt_hw_led_off(rt_uint32_t led);
void led_run(int led_id, int time);

#endif
